usb/serial/ch341: Add parity support
authorKarl Palsson <karlp@tweak.net.au>
Tue, 18 Mar 2014 23:33:27 +0000 (23:33 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:37:52 +0000 (17:37 +0000)
commitc1ccdcabfad621d004efe1aaa1578e842be8bdd4
tree49feabecb879ef6f5c19765238f0a6a4588f0823
parentadc34567807427dd5671d4eabb00094e958ae7d2
usb/serial/ch341: Add parity support

Based on wireshark packet traces from a windows machine.

ch340 and ch341 both seem to support all parity modes, but only the ch341
appears to support variable data bits and variable stop bits, so those are left
unimplemented, as before.

Tested on a generic usb-rs485 dongle with the chip label scratched off, and
some Modbus/RTU devices that required various parity settings.

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
drivers/usb/serial/ch341.c